package com.managermype.util;

public enum FilesMediaType {
	
	APPLICATION_ATOM_XML("application/atom+xml",null),
	APPLICATION_FORM_URLENCODED("application/x-www-form-urlencoded",null),
	APPLICATION_JSON("application/json",null),
	APPLICATION_OCTET_STREAM("application/octet-stream",null),
	APPLICATION_XHTML_XML("application/xhtml+xml",null),
	APPLICATION_XML("application/xml",".xml"),
	IMAGE_GIF("image/gif",".gif"),
	IMAGE_JPEG("image/jpeg",".jpg"),
	IMAGE_PNG("image/png","png"),
	MULTIPART_FORM_DATA("multipart/form-data",null),
	TEXT_HTML("text/html",null),
	TEXT_PLAIN("text/plain",".txt"),
	TEXT_XML("text/xml",".xml"),
	PDF("application/pdf",".pdf");
	
	private String mimeType;
	private String extension;
	
	FilesMediaType(String mimeType,String extension){
		this.mimeType = mimeType;
		this.extension = extension;
	}
	
	public String getApplicationType(){
		return this.mimeType;
	}
	
	public String getExtension(){
		return this.extension;
	}
	
}
